package com.abaaba.project2.bean.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class AdminGoodsAddShoppingInformationOfGoosListVO {

    /**
     * goods : {"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/03txyi9mjsunkzlr2fs7.png","gallery":["http://182.92.235.201:8083/wx/storage/fetch/awib14odi5twdebcapmc.jpg","http://182.92.235.201:8083/wx/storage/fetch/vf6r6qo3hwsta563cx36.png"],"goodsSn":"1","name":"2","counterPrice":"3","retailPrice":"4","isNew":true,"isHot":false,"isOnSale":true,"unit":"5","keywords":"6","categoryId":1020001,"brandId":1001013,"brief":"7","detail":"<p>8<\/p>"}
     * specifications : [{"specification":"规格","value":"标准","picUrl":""}]
     * products : [{"id":0,"specifications":["标准"],"price":"9","number":"10","url":"http://182.92.235.201:8083/wx/storage/fetch/emybjowr0f4zs3shzuld.jpg"}]
     * attributes : [{"attribute":"11","value":"12"}]
     */

    private GoodsBean goods;
    private List<SpecificationsBean> specifications;
    private List<ProductsBean> products;
    private List<AttributesBean> attributes;

    public AdminGoodsAddShoppingInformationOfGoosListVO(GoodsBean goods, List<SpecificationsBean> specifications, List<ProductsBean> products, List<AttributesBean> attributes) {
        this.goods = goods;
        this.specifications = specifications;
        this.products = products;
        this.attributes = attributes;
    }

    public AdminGoodsAddShoppingInformationOfGoosListVO() {
    }

    @Data
    public static class GoodsBean {
        /**
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/03txyi9mjsunkzlr2fs7.png
         * gallery : ["http://182.92.235.201:8083/wx/storage/fetch/awib14odi5twdebcapmc.jpg","http://182.92.235.201:8083/wx/storage/fetch/vf6r6qo3hwsta563cx36.png"]
         * goodsSn : 1
         * name : 2
         * counterPrice : 3
         * retailPrice : 4
         * isNew : true
         * isHot : false
         * isOnSale : true
         * unit : 5
         * keywords : 6
         * categoryId : 1020001
         * brandId : 1001013
         * brief : 7
         * detail : <p>8</p>
         */

        private String picUrl;
        private String goodsSn;
        private String name;
        private BigDecimal counterPrice;
        private BigDecimal retailPrice;
        private Boolean isNew;
        private Boolean isHot;
        private Boolean isOnSale;
        private String unit;
        private String keywords;
        private Integer categoryId;
        private Integer brandId;
        private String brief;
        private String detail;
        private String[] gallery;

        public GoodsBean(String picUrl, String goodsSn, String name, BigDecimal counterPrice, BigDecimal retailPrice, boolean isNew, boolean isHot, boolean isOnSale, String unit, String keywords, int categoryId, int brandId, String brief, String detail, String[] gallery) {
            this.picUrl = picUrl;
            this.goodsSn = goodsSn;
            this.name = name;
            this.counterPrice = counterPrice;
            this.retailPrice = retailPrice;
            this.isNew = isNew;
            this.isHot = isHot;
            this.isOnSale = isOnSale;
            this.unit = unit;
            this.keywords = keywords;
            this.categoryId = categoryId;
            this.brandId = brandId;
            this.brief = brief;
            this.detail = detail;
            this.gallery = gallery;
        }

        public GoodsBean() {
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public String getGoodsSn() {
            return goodsSn;
        }

        public void setGoodsSn(String goodsSn) {
            this.goodsSn = goodsSn;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public BigDecimal getCounterPrice() {
            return counterPrice;
        }

        public void setCounterPrice(BigDecimal counterPrice) {
            this.counterPrice = counterPrice;
        }

        public BigDecimal getRetailPrice() {
            return retailPrice;
        }

        public void setRetailPrice(BigDecimal retailPrice) {
            this.retailPrice = retailPrice;
        }

        public boolean isIsNew() {
            return isNew;
        }

        public void setIsNew(boolean isNew) {
            this.isNew = isNew;
        }

        public boolean isIsHot() {
            return isHot;
        }

        public void setIsHot(boolean isHot) {
            this.isHot = isHot;
        }

        public boolean isIsOnSale() {
            return isOnSale;
        }

        public void setIsOnSale(boolean isOnSale) {
            this.isOnSale = isOnSale;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getKeywords() {
            return keywords;
        }

        public void setKeywords(String keywords) {
            this.keywords = keywords;
        }

        public int getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(int categoryId) {
            this.categoryId = categoryId;
        }

        public int getBrandId() {
            return brandId;
        }

        public void setBrandId(int brandId) {
            this.brandId = brandId;
        }

        public String getBrief() {
            return brief;
        }

        public void setBrief(String brief) {
            this.brief = brief;
        }

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public String[] getGallery() {
            return gallery;
        }

        public void setGallery(String[] gallery) {
            this.gallery = gallery;
        }
    }
    @Data
    public static class SpecificationsBean {
        /**
         * specification : 规格
         * value : 标准
         * picUrl :
         */

        private String specification;
        private String value;
        private String picUrl;

        public String getSpecification() {
            return specification;
        }

        public void setSpecification(String specification) {
            this.specification = specification;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public SpecificationsBean(String specification, String value, String picUrl) {
            this.specification = specification;
            this.value = value;
            this.picUrl = picUrl;
        }

        public SpecificationsBean() {
        }
    }
    @Data
    public static class ProductsBean {
        /**
         * id : 0
         * specifications : ["标准"]
         * price : 9
         * number : 10
         * url : http://182.92.235.201:8083/wx/storage/fetch/emybjowr0f4zs3shzuld.jpg
         */

        private int id;
        private BigDecimal price;
        private Integer number;
        private String url;
        private List<String> specifications;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }

        public Integer getNumber() {
            return number;
        }

        public void setNumber(Integer number) {
            this.number = number;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public List<String> getSpecifications() {
            return specifications;
        }

        public void setSpecifications(List<String> specifications) {
            this.specifications = specifications;
        }

        public ProductsBean(int id, BigDecimal price, Integer number, String url, List<String> specifications) {
            this.id = id;
            this.price = price;
            this.number = number;
            this.url = url;
            this.specifications = specifications;
        }

        public ProductsBean() {
        }
    }
    @Data
    public static class AttributesBean {
        /**
         * attribute : 11
         * value : 12
         */

        private String attribute;
        private String value;

        public String getAttribute() {
            return attribute;
        }

        public void setAttribute(String attribute) {
            this.attribute = attribute;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public AttributesBean() {
        }

        public AttributesBean(String attribute, String value) {
            this.attribute = attribute;
            this.value = value;
        }
    }
}
